package morning.cat.model;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.beans.factory.FactoryBean;

/**
 * @describe: 类描述信息
 * @author: morningcat.zhang
 * @date: 2020/1/13 4:15 PM
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ToolFactoryBean implements FactoryBean<Tool> {

	private int factoryId;
	private int toolId;




	@Override
	public Tool getObject() {
		return new Tool(toolId);
	}

	@Override
	public Class<?> getObjectType() {
		return Tool.class;
	}

	@Override
	public boolean isSingleton() {
		return false;
	}
}
